package com.onlinesshop.mall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author yuyan
 * @version 1.0
 * @date 2019/12/26 11:50
 * @描述 个人中心
 */
@Controller
@RequestMapping("/personal")
public class PersonalController {


    /**
     * 查询个人信息 并跳转到个人中心
     * @param modelAndView
     * @param id
     * @return
     */
    @RequestMapping("/findPerson")
    public ModelAndView findPerson(ModelAndView modelAndView,int id){
        return modelAndView;
    }

    @RequestMapping("/toPersonCenter")
    public ModelAndView toPersonCenter(ModelAndView modelAndView){
        modelAndView.setViewName("User_Center");
        return  modelAndView;
    }

    @RequestMapping("/toUserAddress")
    public ModelAndView toUserAddress(ModelAndView modelAndView){
        modelAndView.setViewName("User_Address");
        return  modelAndView;
    }
    @RequestMapping("/toUserPassword")
    public String toUserPassword(ModelAndView modelAndView){
       /* modelAndView.setViewName("user_altermessage");*/
        return  "user_altermessage";
    }
    @RequestMapping("/toOrdersList")
    public ModelAndView toOrdersList(ModelAndView modelAndView){
        modelAndView.setViewName("user_OrdersList");
        return  modelAndView;
    }
    @RequestMapping("/toHelper")
    public ModelAndView toHelper(ModelAndView modelAndView){
        modelAndView.setViewName("Helper");
        return  modelAndView;
    }


}
